import request from '../index';

const baseUrl = '/api-server';

// 查询监控配置
export const queryMonitorConfig = (params: any) => {
  return request({
    url: `${baseUrl}/ezviz/queryMonitorConfig`,
    params: { form: params },
  });
};

// 设置监控配置
export const setMonitorConfig = (params: any) => {
  return request({
    url: `${baseUrl}/ezviz/setMonitorConfig`,
    params: { form: params, successMsg: '1' },
  });
};

// 查询监控秘钥
export const queryMonitorKey = (params: any) => {
  return request({
    url: `${baseUrl}/ezviz/queryMonitorKey`,
    params: { form: params },
  });
};

// 设置监控秘钥
export const setMonitorKey = (params: any) => {
  return request({
    url: `${baseUrl}/ezviz/setMonitorKey`,
    params: { form: params, successMsg: '1' },
  });
};

// 查询监控设备
export const queryMonitorDevices = (params: any) => {
  return request({
    url: `${baseUrl}/ezviz/queryMonitorDevices`,
    params: { form: params },
  });
};

// 查询播放地址
export const queryPlayerAddress = (params: any) => {
  return request({
    url: `${baseUrl}/ezviz/queryPlayerAddress`,
    params: { form: params },
  });
};

// 查看监控视频列表
export const queryMonitors = (params: any, pages: any) => {
  return request({
    url: `${baseUrl}/ezviz/queryMonitors`,
    params: { form: params, pages },
  });
};



